﻿using System;
using TI_BLE_HCI_ClientLib.GenericHCIEntities;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;

namespace TI_BLE_HCI_ClientLib.HCIEvents
{
    public class HCIEvent_GAP_Advert_Data_Update_Done : HCIVendorSpecificEvent
    {
        public enum AdvertisingTypeEnum
        {
            SCANRSPData = 0,
            AdvertisementData = 1
        }

        private HCIVendorSpecificEventHostErrorCode _status;
        private AdvertisingTypeEnum _adType;


        public AdvertisingTypeEnum AdvertisingType
        {
            get { return _adType; }
            set { _adType = value; }
        }

        public HCIVendorSpecificEventHostErrorCode Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public HCIEvent_GAP_Advert_Data_Update_Done(
            HCIVendorSpecificEventHostErrorCode status,
            AdvertisingTypeEnum adType)
            : base((ushort)HCIVendorSpecificEventEventOpcode.GAP_Advert_Data_Update_Done)
        {
            _status=status;
            _adType=adType;
        }
    }
}
